package com.icangya.domain;

import javax.persistence.*;
import java.sql.Timestamp;


@Entity
@Table(name = "fb_payinfo")
public class FbPayInfo {

    private  long id;

    private String code;
    private String msg;
    private String result_code;
    private String out_trade_id;
    private String ch_trade_id;
    private String openid;
    private String is_subscribe;
    private String bank_type;
    private String total_fee;
    private String fee_type;
    private String trade_state;
    private String trade_info;
    private String trade_id;
    private String mch_trade_id;
    private String merchant_id;
    private String pay_type;
    private String nonce_str;
    private Timestamp payDate;

    @Basic
    @Column(name = "pay_date")
    public Timestamp getPayDate() {
        return payDate;
    }

    public void setPayDate(Timestamp payDate) {
        this.payDate = payDate;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "code")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    @Basic
    @Column(name = "msg")
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    @Basic
    @Column(name = "result_code")
    public String getResult_code() {
        return result_code;
    }

    public void setResult_code(String result_code) {
        this.result_code = result_code;
    }

    @Basic
    @Column(name = "out_trade_id")
    public String getOut_trade_id() {
        return out_trade_id;
    }

    public void setOut_trade_id(String out_trade_id) {
        this.out_trade_id = out_trade_id;
    }
    @Basic
    @Column(name = "ch_trade_id")
    public String getCh_trade_id() {
        return ch_trade_id;
    }

    public void setCh_trade_id(String ch_trade_id) {
        this.ch_trade_id = ch_trade_id;
    }
    @Basic
    @Column(name = "openid")
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
    @Basic
    @Column(name = "is_subsrcibe")
    public String getIs_subscribe() {
        return is_subscribe;
    }

    public void setIs_subscribe(String is_subscribe) {
        this.is_subscribe = is_subscribe;
    }
    @Basic
    @Column(name = "bank_type")
    public String getBank_type() {
        return bank_type;
    }

    public void setBank_type(String bank_type) {
        this.bank_type = bank_type;
    }
    @Basic
    @Column(name = "total_fee")
    public String getTotal_fee() {
        return total_fee;
    }

    public void setTotal_fee(String total_fee) {
        this.total_fee = total_fee;
    }
    @Basic
    @Column(name = "fee_type")
    public String getFee_type() {
        return fee_type;
    }

    public void setFee_type(String fee_type) {
        this.fee_type = fee_type;
    }
    @Basic
    @Column(name = "trade_state")
    public String getTrade_state() {
        return trade_state;
    }

    public void setTrade_state(String trade_state) {
        this.trade_state = trade_state;
    }
    @Basic
    @Column(name = "trade_info")
    public String getTrade_info() {
        return trade_info;
    }

    public void setTrade_info(String trade_info) {
        this.trade_info = trade_info;
    }
    @Basic
    @Column(name = "trade_id")
    public String getTrade_id() {
        return trade_id;
    }

    public void setTrade_id(String trade_id) {
        this.trade_id = trade_id;
    }
    @Basic
    @Column(name = "mch_trade_id")
    public String getMch_trade_id() {
        return mch_trade_id;
    }

    public void setMch_trade_id(String mch_trade_id) {
        this.mch_trade_id = mch_trade_id;
    }
    @Basic
    @Column(name = "merchant_id")
    public String getMerchant_id() {
        return merchant_id;
    }

    public void setMerchant_id(String merchant_id) {
        this.merchant_id = merchant_id;
    }
    @Basic
    @Column(name = "pay_type")
    public String getPay_type() {
        return pay_type;
    }

    public void setPay_type(String pay_type) {
        this.pay_type = pay_type;
    }
    @Basic
    @Column(name = "nonce_str")
    public String getNonce_str() {
        return nonce_str;
    }

    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }


    public FbPayInfo() {
    }


    public FbPayInfo(String code, String msg, String result_code, String out_trade_id, String ch_trade_id, String openid, String is_subscribe, String bank_type, String total_fee, String fee_type, String trade_state, String trade_info, String trade_id, String mch_trade_id, String merchant_id, String pay_type, String nonce_str) {
        this.code = code;
        this.msg = msg;
        this.result_code = result_code;
        this.out_trade_id = out_trade_id;
        this.ch_trade_id = ch_trade_id;
        this.openid = openid;
        this.is_subscribe = is_subscribe;
        this.bank_type = bank_type;
        this.total_fee = total_fee;
        this.fee_type = fee_type;
        this.trade_state = trade_state;
        this.trade_info = trade_info;
        this.trade_id = trade_id;
        this.mch_trade_id = mch_trade_id;
        this.merchant_id = merchant_id;
        this.pay_type = pay_type;
        this.nonce_str = nonce_str;
    }

    public FbPayInfo(String code, String msg, String result_code, String out_trade_id, String ch_trade_id, String openid, String is_subscribe, String bank_type, String total_fee, String fee_type, String trade_state, String trade_info, String trade_id, String mch_trade_id, String merchant_id, String pay_type, String nonce_str, Timestamp payDate) {
        this.code = code;
        this.msg = msg;
        this.result_code = result_code;
        this.out_trade_id = out_trade_id;
        this.ch_trade_id = ch_trade_id;
        this.openid = openid;
        this.is_subscribe = is_subscribe;
        this.bank_type = bank_type;
        this.total_fee = total_fee;
        this.fee_type = fee_type;
        this.trade_state = trade_state;
        this.trade_info = trade_info;
        this.trade_id = trade_id;
        this.mch_trade_id = mch_trade_id;
        this.merchant_id = merchant_id;
        this.pay_type = pay_type;
        this.nonce_str = nonce_str;
        this.payDate = payDate;
    }

    @Override
    public String toString() {
        return "FbPayInfo{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", result_code='" + result_code + '\'' +
                ", out_trade_id='" + out_trade_id + '\'' +
                ", ch_trade_id='" + ch_trade_id + '\'' +
                ", openid='" + openid + '\'' +
                ", is_subscribe='" + is_subscribe + '\'' +
                ", bank_type='" + bank_type + '\'' +
                ", total_fee='" + total_fee + '\'' +
                ", fee_type='" + fee_type + '\'' +
                ", trade_state='" + trade_state + '\'' +
                ", trade_info='" + trade_info + '\'' +
                ", trade_id='" + trade_id + '\'' +
                ", mch_trade_id='" + mch_trade_id + '\'' +
                ", merchant_id='" + merchant_id + '\'' +
                ", pay_type='" + pay_type + '\'' +
                ", nonce_str='" + nonce_str + '\'' +
                ", payDate=" + payDate +
                '}';
    }
}
